#include "stdio.h"
 
/* Take an array of floats, and return the their average */
double avg_array(double *array, int num_entries)
{
    int i;
    double sum = 0.0;

    for (i = 0; i < num_entries; i++)
    {
        sum += array[i];
        //printf("array[i]"" %f\n", array[i]);

    }
    //printf("Result: %f\n", sum / num_entries);
    return sum / num_entries;
}
